home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98a.txt / 000009_icon-group-sender _Thu Jan 22 10:28:55 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id KAA03755
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 22 Jan 1998 10:28:55 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA00411; Thu, 22 Jan 1998 10:28:55 -0700
  7. From: gep2@computek.net
  8. Date: Wed, 21 Jan 1998 20:40:17 -0600
  9. Message-Id: <199801220240.UAA29186@axp.cmpu.net>
  10. Mime-Version: 1.0
  11. Content-Type: text/plain
  12. Content-Transfer-Encoding: 7bit
  13. Subject: Hebrew
  14. To: icon-group@optima.CS.Arizona.EDU
  15. X-Mailer: SPRY Mail Version: 04.00.06.17
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 1590
  19.  
  20. > Hebrew is a right-to-left language.  Icon is oriented toward left-to-right
  21. analysis, from all that I can tell.
  22.  
  23. > (1) Can Icon be reoriented to go right-to-left?
  24.  
  25. Not as it stands.  Of course, you do have access to the source code, so I don't 
  26. see any insurmountable problems in developing a Hebrew-friendly[ier?] Icon 
  27. variant.
  28.  
  29. > (2) Failing that, are there any pitfalls in simply reversing the text of the
  30. Hebrew, and running Icon left-to-right against the reversed text?
  31.  
  32. Pitfalls?  Sure.  None of them impassable, however.
  33.  
  34. Among the problems are that Hebrew is NOT *strictly* right-to-left, in that 
  35. numbers and non-Hebrew (such as English) words and names are embedded using the 
  36. normal left-to-right character sequencing.  If you've ever worked with a 
  37. Hebrew-compatible word processor, this makes for very interesting jumping around 
  38. of the cursor as you press the "right" and "left" arrow keys!!
  39.  
  40. Most of the approaches I've seen seem to revolve around embedding an invisible 
  41. marker in the text which starts and ends different directional modes.
  42.  
  43. This is undeniably damned inconvenient.  It sure would complicate string 
  44. scanning for example, since as you're scanning a string "sequentially" sometimes 
  45. the logically "next" character is nowhere near adjacent to the current one.
  46.  
  47. If there's any consolation, it's that Icon and S*BOL are probably the two 
  48. programming languages BEST-suited to handling this kind of complex textual 
  49. manipulation!
  50.  
  51. GOOD LUCK!
  52.  
  53. Gordon Peterson
  54. http://www.computek.net/public/gep2/
  55. Support the Anti-SPAM Amendment!  Join at http://www.cauce.org/
  56.  
  57.